﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using Universum.Model.Services.Blog;
using Universum.Controllers;
using Universum.Views.Blogs;
using System.Web.Mvc;
using Universum.Infrastructure.Configuration;

namespace Universum.Unit.Tests.Controllers.BlogsControllerBehaviours
{
	[TestClass]
	public class When_requesting_blog_item
		: with_user_logged_and_blog_with_100_posts
	{
		public When_requesting_blog_item()
		{
			
		}

		[TestInitialize]
		public void establishes_context()
		{
			base.EstablishContext();
		}

		[TestMethod]
		public void should_read_100_ITEMS_from_repository(){
		 var result =	Repository.Query(new Universum.Infrastructure.Persistence.Queries.Blog.BlogArticleByBlogId(Guid.NewGuid()));
			result.Count().should_be_equal_to(100);
		}
		
	}
}
